import request from "../util/request";


export default {
    save(pojo) {
        return request({
            url: `/user/save`,
            method: "post",
            data: pojo
        })
    },
    get(id) {
        return request({
            url: `/user/get/${id}`,
            method: "get",
        })
    },
    delete(id) {
        return request({
            url: `/user/delete/`,
            method: "delete",
            data: id
        })
    },
    update(pojo) {
        return request({
            url: `/user/update`,
            method: "put",
            data: pojo
        })
    },
    query(pojo, page, size) {
        return request({
            url: `/user/list/${page}/${size}`,
            method: "post",
            data: pojo
        })
    },
    list() {
        return request({
            url: `/user/list`,
            method: "get",
        })
    },

}